package com.gary.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author peng_rui
 * @date 2022/7/31
 */
@FeignClient(value = "nacos-provider", fallback = PaymentFallbackServiceImpl.class)
public interface PaymentService {

    /**
     * paymentSql
     * @param id
     * @return
     */
    @RequestMapping(value = "/paymentSql/{id}", method = RequestMethod.GET)
    String paymentSql(@PathVariable("id") Long id);
}
